package org.xurui.sxl.protocol.enums;

import lombok.Getter;

@Getter
public enum MncEnum {
    ZGYD("00","中国移动"),
    ZGLT("01","中国联通"),
    ZGDX("02","中国电信");
    String code;
    String name;
    MncEnum(String code,String name){
        this.code = code;
        this.name = name;
    }

    public static MncEnum matchCode(String code){
        for(MncEnum obj: MncEnum.values()){
            if(obj.getCode().equals(code)){
                return obj;
            }
        }
        return null;
    }

}